<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="http://apps.bdimg.com/libs/seajs/2.3.0/sea.js"></script>
</head>
<body>
    
<script>
seajs.config({
    base: location.href.replace(/test\.html.*$/, "js/")
});
    seajs.use('test');
</script>

</body>
</html>